<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="application/json" %>
<%= getEvents(request) %>
<%@ page import="com.dhtmlx.planner.*,reservation.tools.*" %>
<% if(request.getParameter("local_id") == null){
	out.println("<script>alert(\"Nie wybrales lokalu\")</script>");
	response.sendRedirect("../social/index.jsp?page=events&group=newReservation");
	}
	%>
<%!
    String getEvents(HttpServletRequest request) throws Exception {
    EventsManager evs = new EventsManager(request);
    return evs.run();
  }
%>